<?php
/**
 * Created by PhpStorm.
 * User: LiuJiaJun
 * Date: 2019/6/9
 * Time: 23:32
 */

namespace api\storage\common;


class FileDataTemplate
{

    public static function outputFeedData($materielId, $count, $planCount = 0, $storeCount = 0, $isMinQuantity = false)
    {
        return [
            'materielId' => $materielId,
            'count' => $count,
            'planCount' => $planCount,
            'storeCount' => $storeCount,
            'isMinQuantity' => $isMinQuantity
        ];
    }

    public static function outputRecordData($ac, $pc, $cc = 0, $sc = 0, $isMQ = false)
    {
        return [
            'originalCount' => $ac,//投料数量
            'planCount' => $pc,//应发数量,即为欠料数量
            'currentCount' => $cc,//当前出库的数量，出库完成为实发数量，
            'storeCount' => $sc,
            'isMinQuantity' => $isMQ
        ];
    }

    public static function outputReelData($reelId, $seatCode, $materielId, $count, $tempCount = 0, $isFinished = false)
    {
        return [
            'reelId' => $reelId,
            'seatCode' => $seatCode,
            'materielId' => $materielId,
            'count' => $count,
            'tempCount' => $tempCount,
            'isFinished' => $isFinished
        ];
    }

    public static function outputBatchData($batchId, $seatCode, $containerCode, $materielId, $count, $tempCount = 0, $isFinished = false)
    {
        return [
            'batchId' => $batchId,
            'seatCode' => $seatCode,
            'containerCode' => $containerCode,
            'materielId' => $materielId,
            'count' => $count,
            'tempCount' => $tempCount,
            'isFinished' => $isFinished
        ];
    }


}